<template>
    <div class="wrapper">
        <h1>PropsSu-1-Attrs</h1>
        我收到的attrs: {{ $attrs }}
        <button @click="updateA(10)">改A</button>
    </div>
</template>

<script lang="ts" setup name="PropsSu1Attrs">

import { ref } from 'vue'
defineProps(['updateA'])

</script>

<style scoped>
.wrapper {
    background-color: skyblue;
    box-shadow: 0 0 10px;
    border-radius: 10px;
    padding: 20px;
    margin: 20px
}

button {
    margin: 0 5px;
}
</style>